Change-Id: I9d1c34d8e63767a6abc4f98c09caf65d5056433a
return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values
}
return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values
}
- /**
- * @param $count int
- * @param $forms array
- * @return string
- */
- function convertPlural( $count, $forms ) {
- if ( !count( $forms ) ) { return ''; }
- $forms = $this->preConvertPlural( $forms, 4 );
-
- switch ( abs( $count ) % 100 ) {
- case 1: return $forms[0]; // singular
- case 2: return $forms[1]; // dual
- case 3:
- case 4: return $forms[2]; // plural
- default: return $forms[3]; // pluralgen
- }
- }
<pluralRule count="one">n is 1</pluralRule>
<pluralRule count="two">n is 2</pluralRule>
</pluralRules>
<pluralRule count="one">n is 1</pluralRule>
<pluralRule count="two">n is 2</pluralRule>
</pluralRules>
- <pluralRules locales="dsb">
+ <pluralRules locales="dsb hsb">
<pluralRule count="one">n mod 100 is 1</pluralRule>
<pluralRule count="two">n mod 100 is 2</pluralRule>
<pluralRule count="few">n mod 100 in 3..4</pluralRule>
<pluralRule count="one">n mod 100 is 1</pluralRule>
<pluralRule count="two">n mod 100 is 2</pluralRule>
<pluralRule count="few">n mod 100 in 3..4</pluralRule>